﻿using System;
using System.Collections.Generic;
using System.Linq;

using HelfenHelfen.DataAccess.Entities;
using HelfenHelfen.DataAccess.Interfaces;

namespace HelfenHelfen.DataAccess {
   public class DemandCategoryDataAccess : IDemandCategoryDataAccess {
      public IList<DemandCategory> GetAll() {
         using (HelfenHelfenEntities db = new HelfenHelfenEntities()) {
              return (from cat in db.DemandCategories
                        select cat).ToList();
         }
      }
   }
}
